/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package sda.levelup.lists.linkedlist;



/**
 *
 * @author Дима
 */
public class Entry
{
    private Object value;
    private Entry next;
    private Entry prev;
    
    public Entry(Object value){
        this.value = value;
    }
    

    public Entry(Object value, Entry next, Entry prev) {
        this.value = value;
        this.next = next;
        this.prev = prev;
    }
    
    
    public void setValue(Object value){
        this.value = value;
    }
    public Object getValue(){
        return value;
    }
    public void setNext(Entry next){
        this.next = next;
    }
    public Entry getNext(){
        return next;
    }

    public Entry getPrev() {
        return prev;
    }

    public void setPrev(Entry prev) {
        this.prev = prev;
    }
}
